package com.liming.file.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author liming
 * @date 2025/5/16
 */
@FeignClient(value = "file-service", contextId = "AliClient", path = "/service/ali")
public interface AliClient {

    @PostMapping(value = "upload_oss", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String uploadOss(@RequestPart MultipartFile file);
}
